package com.boco.pciv.service.sys.impl;

import com.boco.pciv.SysProperties;
import com.boco.pciv.core.service.PcivBaseServiceImpl;
import com.boco.pciv.entity.sys.CityInfo;
import com.boco.pciv.mapper.sys.ICityMapper;
import com.boco.pciv.service.sys.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by CC on 2017/2/16.
 */
@Service
public class CityServiceImpl extends PcivBaseServiceImpl<ICityMapper,CityInfo,String> implements ICityService{
    @Autowired
    SysProperties sysConfig;
    @Override
    public List<CityInfo> getCity() {
        return mapper.queryByParent(sysConfig.getParentCityId());
    }
}
